{% extends "base_site.html" %}

{% block content %}
{% for post in post_list %}
	{% ifchanged %}<h4>{{ post.create_date|date:"F" }}</h4>{% endifchanged %}
	<div class='entry'>
		<a name="post{{ post.id }}"></a>
		<h2><a href="/post/{{ post.id }}/" title='{{ post.title }}'  
				alt='{{ post.title }}'>{{ post.title }}</a></h2>
		<p>{{ post.content|escape|truncatewords:50 }}</p>
		<p class="post-footer align-right">
		    <a href="/post/{{ post.id }}/" class="readmore">Read more</a>
		    <a href="/post/{{ post.id }}/comments/" class="comments">Comments (7)</a>
		    <span class="date">{{ post.create_date|date:"D, M d, Y" }}</span>
		</p>
	</div>
{% endfor %}
{% endblock %}